from django.urls import re_path
from homes import views

urlpatterns = [
    re_path(r'^api/v1.0/areas$',
            views.SubAreasView.as_view()),
    re_path(r'^api/v1.0/houses$',
            views.ReleaseHousing.as_view()),
    re_path(r'^api/v1.0/user/houses$',
            views.HouseListView.as_view()),
    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)/images$',
        views.Hose_Sourse_View.as_view()),
    re_path(r'^api/v1.0/houses/index$',
        views.HouseShowView.as_view()),
    re_path(r'^api/v1.0/houses/(?P<house_id>\d+)$',
        views.HouseDetaView.as_view()),
]